﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data.OleDb;

namespace WebApplication2
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            string x = null;
            string y = null;
            string z = null;

            serv ime = new serv();
            if (DropDownList3.SelectedIndex == 0)
            {

                x = DropDownList3.SelectedItem.Value.ToString();
            }
            if (DropDownList3.SelectedIndex == 0)
            {

                y = DropDownList2.SelectedItem.Value.ToString();
            }
            if (DropDownList3.SelectedIndex == 0)
            {

                z = DropDownList1.SelectedItem.Value.ToString();
            }
            ime.VnesiLokacija(x, y, z);
        }
    }
}